package com.itheima.ydd.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.ydd.dto.SysRoleDtoUtil;
import com.itheima.ydd.dto.SysUserDto;
import com.itheima.ydd.entity.Result;
import com.itheima.ydd.entity.SysRole;

import java.util.Map;

/**
 * @author Wang.XL
 */
public interface SysRoleService extends IService<SysRole> {
    Result delSysRole(Integer id);

    /**
     * 查看所有
     * @param name
     * @param page
     * @param limit
     * @return
     */
    Result findAll(String name,String page, String limit);

    /**
     * 查看信息
     * @param id
     */
    SysRoleDtoUtil getSysRoleInfo(String id);

    Result deleteSysRole(String id);

    Result addRole(Map<String, Object> map);
}
